@media only screen and (min-width: 480px) {
  html {
    font-size: 21px;
  }
}
@media only screen and (min-width: 540px) {
  html {
    font-size: 28px;
  }
}
@media only screen and (min-width: 640px) {
  html {
    font-size: 31px;
  }
}
template {
  display: none;
}
body {
  background-color: #f2f2f2;
  padding-bottom: 4em;
}
/* 公共样式 */
.w100 {
  display: block;
  width: 100%;
}
.preloader-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 80px;
  line-height: 80px;
  border-radius: 5px;
  margin-top: -40px;
  margin-left: -75px;
  text-align: center;
  background: rgba(0,0,0,.6);
  color: #fff;
}
.top-bar {
  height: 3em;
  background-color: #e83b66;
  text-align: center;
  color: #fff;
}
.top-bar .top-bar-back,
.top-bar .top-bar-menu {
  width: 3.571em;
  height: 3em;
  line-height: 3em;
  text-align: center;
}
.top-bar .top-bar-name {
  font-size: 1em;
}
.stress {
  color: #ee1259;
}
.top-bar-search {
  opacity: 1;
  -webkit-transition: all .3s ease-in-out;
      -ms-transition: all .3s ease-in-out;
          transition: all .3s ease-in-out;
}
.other-buy li {
  padding: .5em;
  text-align: center;
}
.index-block {
  margin: .714em 0;
  padding: .714em;
  background-color: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.list-block {
  padding: 0;
  background-color: #fff;
}
.index-nav .flex-row {
  height: 5.536em;
}
.index-nav .flex-row img {
  margin-bottom: .4em;
  width: 2.857em;
  height: 2.857em;
  border-radius: 50%;
}
.index-nav .row-item {
  text-align: center;
}
.index-activity-item {
  margin-bottom: 1em;
  width: 49%;
}
.index-recommend {

}
.list-block-title {
  padding: 0 .679em;
  height: 3em;
  line-height: 3em;
  border-bottom: 1px solid #d9d9d9;
  font-size: 1em;
}

.index-recommend .swipe-slide {
  overflow: hidden;
}
.index-recommend-a {
  float: left;
  width: 25%;
  border: 1px solid #d5d5d5;
  margin-left: -1px;
  margin-top: -1px;
}

/* 主导航 */
.main-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #f7f7f7;
  border-top: 1px solid #a9a9a9;
  z-index: 10;
}
.main-nav-item {
  display: block;
  height: 3.571em;
  text-align: center;
  color: #818181;
  padding-top: 2.1em;
  background-repeat: no-repeat;
  background-size: 2em;
  background-position: center 0.2em;
}
.main-nav-item.current {
  color: #E83B66;
}
.main-nav-my {
  background-image: url();
}
.main-nav-my.current {
  background-image: url();
}
.main-nav-home {
  background-image: url();
}
.main-nav-home.current {
  background-image: url();
}
.main-nav-cart {
  background-image: url();
}
.main-nav-cart.current {
  background-image: url();
}
.search {
  padding: .5em 0 .5em 3em;
  width: 95%;
  border: none;
  border-radius: .5em;
  color: #fff;
  background: #ff6797 url() 1em 50% no-repeat;
  background-size: 1.143em 1.143em;
}
.search:focus {
  background: #fff url() 1em 50% no-repeat;
  background-size: 1.143em 1.143em;
  color: #333;
  outline: none;
}
.top-bar-search.hide {
  opacity: 0;
  width: 0;
}
.search::-webkit-input-placeholder {
  color: #fff;
}
.search:focus::-webkit-input-placeholder {
  color: #333;
}
.main-nav-item {
  
}

/* 商品列表样式 */
.shop {
  position: relative;
}
.shop-blur {
  -webkit-filter: blur(5px);
  filter: blur(5px);
}
.shop-list {
  position: relative;
  padding: .893em .643em;
  border-bottom: 1px solid #d9d9d9;
  background-color: #fff;
}
.shop-list .add-to-cart {
  position: absolute;
  bottom: .893em;
  right: .643em;
  width: 1.857em;
  height: 1.857em;
  line-height: 1.857em;
  border-radius: 50%;
  background-color: #eb165e;
  color: #fff;
  text-align: center;
}
.shop-list-shop {
  border: 1px solid #eee;
}
.shop-list-summary {
  padding-left: 1em;
}
.shop-list-name {
  font-size: 1em;
  min-height: 2em;
  line-height: 1.5em;
  overflow: hidden;
  font-weight: bold;
}
.shop-list-price {
  color: #b9255e;
}
.shop-list-price .now-price {
  margin-right: .8em;
  font-size: 1.143em;
}
.shop-list-price .original-price {
  margin-right: .8em;
}
.shop-list-price .discount {

}
.shop-list-num {
  color: #bbb;
}

/* 查询列表页面 */
.list-select {
  border-bottom: .2em solid #d7d7d7;
  background-color: #f9f9f9;
  text-align: center;
}
.list-select-item {
  position: relative;
  border-right: 1px solid #d7d7d7;
}
.list-select-item:last-child {
  border-right: none;
}
.list-select-title {
  height: 2.857em;
  line-height: 2.857em;
  font-size: 1em;
}
.list-select-content {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  opacity: 0;
  display: none;
}
.list-select-content.active {
  opacity: 1;
  display: block;
}
.list-select-item:nth-child(3) .list-select-content,
.list-select-item:nth-child(4) .list-select-content {
  left: auto;
  right: 0;
}
.list-select-ul {
  width: 13.679em;
  background-color: #555;
  color: #fff;
  text-align: left;
}
.list-select-li {
  float: left;
  width: 50%;
  padding-left: .857em;
  height: 3.107em;
  line-height: 3.107em;
  border-bottom: 1px solid #888;
  border-right: 1px solid #888;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.readmore {
  text-align: center;
  font-size: 1.1em;
  line-height: 3em;
}

/* 商品详情页面 */
.product-price {
  background-color: #fff;
  height: 3.3em;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}
.product-original-price {
  margin-left: 1.321em;
  color: #ababab;
  font-size: .8em;
}
.product-now-price {
  
}
.icon-product-money,
.icon-product-person {
  margin-right: 1em;
}
.stress-product-person {
  margin-right: .5em;
}
.stress-product-money {
  margin-left: .5em;
}

/* 空的购物车和订单 */
.empty .message {
  margin-bottom: 30px;
  text-align: center;
}

/* 搜索层，满屏显示  */
.product-search {
  background-color: #f4f4f4;
}

.product-search form {
  position: relative;
}

.product-search .arrows9 {
  position: absolute;
  top: 50%;
  left: .3em;
  width: 1.5em;
  height: 1.5em;
  -webkit-transform: translate(0,-50%) rotate(135deg);
      -ms-transform: translate(0,-50%) rotate(135deg);
          transform: translate(0,-50%) rotate(135deg);
}

.product-search .search-word {
  margin-right: 4em;
  margin-left: 2em;
  padding: .6em 1em;
  height: 3em;
  border: 1px solid #ccc;
  border-radius: 5px 0 0 5px;
  background-color: #fff;
}

.product-search .search-input {
  padding: 0;
  width: 100%;
  height: auto;
  border: none;
  box-shadow: none;
}

.product-search .search-input:focus {
  border-color: #ccc;
}

.product-search .submit {
  position: absolute;
  top: 0;
  right: 0;
  width: 4em;
  height: 3em;
  border: 1px solid #ccc;
  border-left: none;
  border-radius: 0 5px 5px 0;
  background-color: #f4f4f4;
}

.product-search .icon-search {
  display: block;
  margin-left: 1em;
  width: 2em;
  height: 2em;
  background: url(../images/search.png) 0 0 no-repeat;
  background-size: 2em 2em;
}

#cart-num {
  position: absolute;
  top: 8px;
  left: 50%;
  display: inline-block;
  margin-left: 20px;
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: #b10;
  font-size: 1.2rem;
}

#cartCount {
  position: absolute;
  top: 3px;
  left: 55%;
  z-index: 9;
  padding: 2px 4px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  background-color: #eb3634;
  box-shadow: 0 0 0 2px #fff;
  color: #fff;
  font-size: 1rem;
  line-height: 13px;
}

/* 搜索  */
.search .search-input {
  position: absolute;
  right: 20%;
  display: none;
  margin-top: 8px;
  width: 0;
  transition: all .5s ease-in-out;
}

/* 商品具体信息  */
.product-item {
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.product-item .key {
  float: left;
  width: 4em;
  text-align: right;
  color: #999;
}

.product-summary .summary-item {
  padding: 2px 0;
}

.product-summary .p-price .value {
  color: #B10000;
  font-weight: bold;
  font-size: 1.8rem;
}

/* 购买选择  */
.product-buy-check .value {
  margin-left: 50px;
}

.product-buy-check .key {
  height: 2.429em;
  line-height: 2.429em;
}

.product-buy-check .check-item {
  display: inline-block;
  margin-right: 5px;
  margin-bottom: 5px;
  padding: 3px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  -webkit-user-select: none;
  user-select: none;
}

.product-buy-check .check-item.checked {
  padding: 2px 9px;
  border-color: #B10000;
  border-width: 2px;
  background: url('') no-repeat 100% 100% #fafafa;
}

.product-buy-check input[type="radio"] {
  display: none;
}

/* 数量增减  */
.product-number {
  display: inline-block;
  overflow: hidden;
  height: 2.429em;
  border: 1px solid #ccc;
  background-color: #fff;
  line-height: 2.429em;
}

.buy-num-minus, .buy-num-plus, .buy-num {
  float: left;
  display: inline-block;
  width: 2.143em;
  height: 100%;
  text-align: center;
  font-weight: bold;
}

.buy-num-minus:active, .buy-num-plus:active {
  background-color: #eee;
}

.buy-num-minus {
  border-right: 1px solid #ccc;
}

.buy-num-plus {
  border-left: 1px solid #ccc;
}

.buy-num {
  width: 3.571em;
  border: none;
  box-shadow: none;
}

/* 购买按钮  */
.buy-btn {
  display: inline-block;
  width: 45%;
  height: 2.857em;
  border: none;
  color: #fff;
  text-align: center;
  line-height: 2.857em;
}

.cart {
  margin-right: 4%;
  background-color: #B57230;
}

.cart:active {
  background-color: #DA8430;
  color: #fff;
}

.buy {
  margin-left: 4%;
  background-color: #B10000;
}

.buy:active {
  background-color: #E01B1B;
  color: #fff;
}

/* 商品详情，评价  */
.product-detail header {
  display: -webkit-box;
  display: box;
  height: 2.857em;
  border: 1px solid #ccc;
  border-top: none;
  border-bottom: none;
  background-color: #e9e9e9;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  text-align: center;
  line-height: 2.857em;
}

.product-detail header a {
  display: block;
  border-top: 1px solid #ccc;
  -webkit-box-flex: 1;
}

.product-detail header a.current {
  background-color: #fff;
  border-top-color: #b10000;
  border-top-width: 2px;
}

.product-detail .wrap {
  overflow: hidden;
  border: 1px solid #ccc;
  border-top: none;
  background-color: #fff;
  word-wrap: break-word;
  padding-top: 1em;
}

.product-comment li {
  border-bottom: 1px solid #ccc;
  padding-bottom: .3em;
  margin-bottom: .7em;
}

.product-comment li .user {
  margin-top: .2em;
  font-size: .8em;
}

.product-comment li .user time {
  float: right;
  color: #555;
}

/* 购物车  */
.empty-cart .cart-logo {
  margin: 20px 0 10px;
  height: 80px;
  background: transparent url("") no-repeat center;
}

.cart-lists {
  position: relative;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #eaeaea;
  border-radius: 3px;
  background-color: #fff;
  -webkit-transition: opacity .5s ease-in-out;
  transition: opacity .5s ease-in-out;
}

.cart-lists .good-name {
  border-bottom: 1px solid #eaeaea;
}

.cart-lists .good-info {
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}

.good-info:last-child {
  border-bottom: none;
}

.good-info .good-pic {
  float: left;
  overflow: hidden;
  margin-right: 10px;
  width: 50px;
  height: 50px;
}

.good-info .info-item {
  overflow: hidden;
}

.good-del {
  position: absolute;
  bottom: 5px;
  left: 10px;
}

.good-info .key {
  line-height: 1.429em;
}

.total-price {
  position: fixed;
  bottom: 0;
  padding-left: 10px;
  width: 100%;
  height: 3.571em;
  border-top: 1px solid #ddd;
  background-color: #fff;
  line-height: 3.571em;
}

.total-price p {
  float: left;
}

.total-price em {
  color: #f00;
}

.total-price button {
  float: right;
  width: 6.429em;
  height: 3.571em;
  border-radius: 0;
}

/* 订单提交  */
.confirm-order {
  padding: .8em;
}

.order-item {
  position: relative;
  margin-bottom: 1em;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
}

.order-item .ms-list {
  margin-right: 1em;
  line-height: 1.8em;
}

.order-item .info {
  border-bottom: 1px dashed #ccc;
}

.order-item .ms-list span {
  float: left;
  color: #666;
}

.order-item .ms-list p {
  margin-left: 4em;
}

.order-item .arrows9 {
  position: absolute;
  top: 50%;
  right: 10px;
  margin-top: -5px;
}

.order-item.delivery-type span {
  float: left;
  line-height: 34px;
}

.confirm-order .price {
  color: #b10;
  text-align: right;
  font-size: 1.8em;
}

/* 收货地址的选择、修改、删除与新增  */
.address-item {
  border: 1px solid #ddd;
  border-top: 1px solid #09c;
  border-radius: 5px;
  background-color: #fff;
}

.address-item.active {
  border-color: #b10;
  background: url('') no-repeat 100% 100% #fafafa;
  background-size: 20px 20px;
}

.deliver-address .del {
  position: absolute;
  top: 50%;
  right: -10em;
  z-index: 1;
  -webkit-transform: translateY(-50%);
}

/* 会员中心  */
.my {
  position: relative;
  overflow: hidden;
  border: 1px solid #eaeaea;
  border-bottom: none;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 0.1em 0.05em rgba(0,0,0,.1);
  margin: .8em;
}

.my-item {
  border-bottom: 1px solid #e5e5e5;
}

.my-item a.link {
  position: relative;
  display: block;
  padding: 1.2em;
}

.my-item a.link::after {
  position: absolute;
  top: 50%;
  right: 1em;
  width: 1em;
  height: 1em;
  border: .1em solid #ccc;
  border-top-color: transparent;
  border-left-color: transparent;
  content: "";
  -webkit-transform: rotate(-45deg) translateY(-50%);
      -ms-transform: rotate(-45deg) translateY(-50%);
          transform: rotate(-45deg) translateY(-50%);
}

.my-item.single a.link:after {
  content: none;
}

.my-item a.link:active {
  background-color: #f4f4f4;
  box-shadow: inset 0 2px 3px rgba(0,0,0,.1);
}

.lists {
    border: 1px solid #ddd;
    border-radius: .5em;
    background-color: #fff
}

.lists-item {
    position: relative;
    border-bottom: 1px solid #ddd
}

.lists-item:last-child {
    padding: 1em;
    border-bottom: 0;
}

.lists-item a {
    display: block;
}

.lists-item a:active {
}

.lists-item::after {
    position: absolute;
    top: 50%;
    right: 1em;
    width: 1em;
    height: 1em;
    border: .1em solid #ddd;
    content: "";
    -webkit-transform: rotate(-45deg) translateY(-50%);
        -ms-transform: rotate(-45deg) translateY(-50%);
            transform: rotate(-45deg) translateY(-50%);
    border-top-color: transparent;
    border-left-color: transparent
}

.lists-item.single::after {
    content: none
}

.pd10 { padding: 1em; }
.mg10 { margin: 1em; }
.mb10 { margin-bottom: 1em; }
.pl10 { padding-left: 1em; }
.pr10 { padding-right: 1em; }

.btn-theme {
  background-color: #ee2063;
  color: #fff;
}
/* 订单查询出的列表  */
.order-lists .order-image {
  float: left;
  overflow: hidden;
  width: 50px;
}

.order-lists .order-image img {
  max-width: 50px;
}

.order-lists .order-info h3 {
  font-weight: normal;
  font-size: 1.1em;
}

.order-lists .order-info p {
  color: #666;
}

/* 空的订单 */
.empty-order .order-logo {
  margin: 20px auto 10px;
  width: 50px;
  height: 56px;
  background: transparent url("") no-repeat center;
  background-size: 100%;
}

/* 每个订单的详细  */
.detail-item {
  position: relative;
  padding: 1.2em;
  border-bottom: 1px solid #eaeaea;
}

.detail-item b {
  color: #f60;
}

.detail-item.content p {
  line-height: 2em;
}

.detail-item.content .address-info {
  margin-left: 70px;
  display: block;
}

.detail-item .order-good-list {
  position: relative;
  padding-right: 60px;
  margin-bottom: 5px;
  border-bottom: 1px solid #eaeaea;
}

.detail-item .order-good-list .good-image {
  float: left;
  overflow: hidden;
  width: 50px;
  height: 60px;
  text-align: center;
  line-height: 60px;
}

.detail-item .order-good-list .good-info {
  margin-left: 60px;
}

.detail-item .order-good-list .evaluate {
  position: absolute;
  right: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
}

.order-detail-pay {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 4em;
  line-height: 4em;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
}

.my-order-detail .order-cancel-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 2.5em;
  height: 2.5em;
  background: url(../images/rubbish.png) 0 0 no-repeat;
  background-size: 2.5em 5em;
}

.my-order-detail .order-cancel-btn:active {
  background-position: 0 -2.5em;
}

/* 评价层  */
.evaluate-lay {
  position: absolute;
  top: 1.5em;
  left: 50%;
  z-index: 1001;
  margin-left: -40%;
  padding: .5em;
  width: 80%;
  border-radius: .3em;
  background-color: #e8e8e8;
}

.evaluate-lay .title {
  padding-bottom: .2em;
  border-bottom: 1px solid #b5b5b5;
}

.evaluate-lay textarea {
  margin: .4em 0;
  width: 100%;
}

/* 付款界面  */
.to-pay p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 2em;
}

.to-pay h3 {
  margin-bottom: 1em;
  font-size: 1.4em;
  border-bottom: 1px solid #ececec;
  color: #ee2063;
  text-align: center;
}
